package common.listener;

import common.Event;

import java.util.concurrent.Executor;

public abstract class Subscriber<T extends Event> {

    public abstract void onEvent(T event);

    public abstract Class<? extends Event> subscribeType();

    public Executor executor() {
        return null;
    };

    public boolean ignoreExpireEvent() {
        return false;
    };
}
